home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
allmac21.arc
/
QLIST10.ARC
/
QLIST10.QM
< prev
Wrap
Text File
|
1990-08-27
|
6KB
|
142 lines
* Macro To Load Files From FileList, v1.0a
* QLIST10.QM
*
*
* DESCRIPTION:
*
* QLIST10.QM is a macro that enables QEdit to load a list of files from
* a filelist file of unlimited length. This may be one of the broadly
* most useful macros so far.
*
* The macro was initially written by Kyle Watkins of SemWare and has
* been slightly modified by me to read the macfile of the first file
* in the filelist. This should help those writing QMAC txtfiles.
*
* Added Alt_1 & QLIST.BAT in v1.0a.
*
* @0 - loads files from filelist, reads macfile
* @1 - loads files from filelist, does not read macfile
*
* TO RUN:
*
* To run, place all the files from QLIST10.ZIP in the current directory
* and type QLIST.
*
* For other filelists, prepare a list of files in a vertical column.
* Spaces between files are OK. Save the list with an extension 'ql'.
* Change qlist.ql in QLIST.BAT to the name of your filelist.
*
* The following is the syntex:
*
* Q.EXE [d:][fileList].ql /E[d:][fileName].mac
*
*
* For my setup and to load files contained in QLIST.ZIP my command is:
*
* Q QLIST.ql /Eg:\qe\QLIST.mac
*
* I keep this QLIST.MAC in g:\qe.
*
* Any subsequent filelist I load can be loaded with the the following command:
*
* Q [d:][filelist].ql /Eg:\qe\QLIST.mac
*
* You will see the files being loaded and when the macro completes you
* should be editing this file. If you wish to load files from another
* file list while QLIST.mac is loaded, just load that file list in
* another window and press Alt_0. Another option is to place this macro
* in QCONFIG.DAT on one line and it will be available to load other
* lists at all times while editing any file.
* Use the macro by Kyle Watkins, Alt_1, if you do NOT wish to load the
* macro of the first file in the filelist.
*┌────────────────────────────────────────────────────────────┐
*│ @0 Load Files From FileList, Read macfile of first file │
*└────────────────────────────────────────────────────────────┘
*
@0 macrobegin
endfile * get to last file first
begline *
REPEAT: *
Unmarkblock *
Markline * markline
Copy * copy file name to scrap
Editfile *
Currentfilename " " * load current file +
Paste * last marked on list
Return *
Cursorup * if another file, move up
JTrue REPEAT: * when no more files
nextfile * get to first file |
macroread * and read it's macro |(TH mod)
currentfilename * |
backspace backspace "mac" return* |
*
* 31 bytes Tue 07-31-1990 18:30:10
*
* Use this macro, Alt_1, if you do NOT want to load the macro of the
* first file in the filelist.
*
*
* In comparing this latest macro (as written by Kyle Watkins) to one
* Tim Farley wrote earlier, the following message was sent to me on the
* SemWare BBS by Tim, dated 7/31/90:
*
************************************************************************
* COMMENTS FROM TIM FARLEY - SemWare:
*
*
* Here's Kyle's version (much improved over mine, I must admit) of the
* file list loading macro. Comments added by me.
*
* *
* * LOAD A LIST OF FILES
*
@1 MacroBegin
EndFile BegLine * start at last line
REPEAT:
UnmarkBlock MarkLine Copy * grab this name
EditFile * get ready to load
CurrentFilename " " * to force return *here*
Paste Return * paste filename & do it!
CursorUp * more lines above?
JTrue REPEAT: * if yes, repeat.
*
*
* Not only is this macro far smaller than mine (by a almost a factor of
* 2!), but it has the following advantages:
*
* * faster!
* * doesn't "change" the file list file
* * still loads files in same order they are in the list
* * returns to list file with no screen "flashing"
* * takes advantage of QEdit's deferred loading of files
*
* That last bit is the main advantage: by specifying CurrentFilename
* plus a space plus the desired filename on the EditFile prompt, we
* load both the current file, plus the file we desire. This takes
* advantage of the fact that the EditFile, just like the QEdit command
* line, can accept multiple filenames together, separated by spaces.
*
*
* But loading the current file just returns us to the buffer we are in
* with no disk access. So the end result is that the file from the
* list is entered in QEdit's "ring" *without* actually loading it. It
* only loads when you try to NextFile into it, just as if you had
* loaded the list via a wildcard. Neat!
*
* Kyle really came up with a far better solution here.
*
* --Tim Farley
*
*********************************************************************
*
* Version History:
*
* 1.0a - modified to include Alt_1, Changed documentation.
* - added QLIST.BAT for quick startup
*.. Tom Hogshead Sat 08-18-1990 09:58:12